package com.wanxi.test;



import com.wanxi.entity.User;

import java.util.Scanner;

public class MyIn {
    public static void main(String[] args) {
    String a="aa";
//        让用户输入，必须给用户一个接口，用于输入
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入字符");
        String next = scanner.next();
        System.out.println(next);
        System.out.println("请输入年龄");
        int i = scanner.nextInt();
        System.out.println("你输入的年龄为：" + i);
    }
}
